<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>Our Packages</title>
    </head>
    <body>
        <?php
        include('inc/init.php');
        $smarty->assign('title', $title);

        $smarty->template_dir = 'templates';


        $dest = $db->prepare("select * from ats_destination");
        $dest->execute();
        $dest->setFetchMode(PDO::FETCH_LAZY);

        $city = $db->prepare("select * from ats_city order by city");
        $city->execute();
        $city->setFetchMode(PDO::FETCH_ASSOC);
        $cities = $city->fetchAll();

        $smarty->assign('dest', $dest);
        $smarty->assign('city', $city);
        $smarty->assign('cities', $cities);

        $smarty->display('ourpackages.tpl');
        ?>
    </body>
</html>